<div class="category">
	<table>
		<tr>
			<td valign="top" width="80%">
			  <div class="paginator">
    	   		  <?php 
    	   		      $escaper = new Zend\Escaper\Escaper('utf-8');
    	   		  
    	   		      echo sprintf('<div class="title">%s</div>', $escaper->escapeHtml($this->name->getText()));
    	   		      
    	   		      if ($this->paginator->getPages()->pageCount > 1)
        	   		      echo $this->paginationcontrol($this->paginator, null, 'helper/paginator', array('route' => 'catalog/category')); 
    	   		  ?>
	   		  </div>
	   		  <div class="list">
    	   		  <?php 
    	   		      foreach ($this->paginator as $item): {
        	   		      $alias = $item['alias']->getText();
    	   		          $name = $item['localized_name']->getText();
        	   		      $imageUrl = $item['image']->getUrl();
                          $price = $item['price']->getValue();
                          $currency = $item['price']->getCurrency();
        	   		              	   		      
        	   		      echo sprintf('<div class="item"><a href="%s"><img src="%s"/></a><div class="description"><div class="name">%s</div><div class="price">%s</div></div></div>',
                                $this->url('catalog/product', array('product_alias' => $alias, 'action' => 'detail', 'controller' => 'product'), array(), true),
        	   		      		$escaper->escapeHtmlAttr($imageUrl), $escaper->escapeHtml($name), 
                                $escaper->escapeHtml(sprintf($this->translate('from_price', 'catalog', $this->locale), 
                                $this->currencyFormat($price, $currency, $this->locale))));
        	   		  } endforeach; ?>
    			</td>
			</div>
			<td valign="top" width="20%">
                <?php
                    echo $this->callout(null, array(
                        'title' => $this->translate('personalize', 'catalog', $this->locale),
                        'content' => $this->translate('personalize_content', 'catalog', $this->locale),
                        'imageUrl' => $this->basePath() . '/img/callout/personalize.png'
                    ));
                    
                    echo $this->callout(null, array(
                        'title' => $this->translate('collaborate', 'catalog', $this->locale),
                        'content' => $this->translate('collaborate_content', 'catalog', $this->locale),
                        'imageUrl' => $this->basePath() . '/img/callout/collaborate.png'
                    ));
                    
                    echo $this->social_callout(null, null);
                    echo $this->paypal_callout(null, null);
                ?>
            </td>
		</tr>
	</table>
</div>